package cn.codergege.springmvc.dao;

import java.util.List;

public interface BaseMapper<T> {
	
	List<T> getAll() throws Exception;

	// generated -------------------------------------------->

    int deleteByPrimaryKey(Integer id) throws Exception;

    int insert(T record) throws Exception;

    int insertSelective(T record) throws Exception;

    T selectByPrimaryKey(Integer id) throws Exception;

    int updateByPrimaryKeySelective(T record) throws Exception;

    int updateByPrimaryKey(T record) throws Exception;

}
